<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrapJS/jquery.js"></script>
<title></title>
</head>
<body>

			<span>请选择班级</span>
			<select id="tbClass_id" name="tbClass" style="margin-right: 10px;" class="form-control" onchange="fun()">
				<c:forEach items="${tbClass}" var = "b">
					<option value="${b.id}">${b.className}</option>
				</c:forEach>
			</select>
			<span>请选择课程</span>
			<select id="course_id" name="course" class="form-control" onchange="fun()">
				<c:forEach items="${course}" var = "b">
					<option value="${b.id}">${b.courseName}</option>
				</c:forEach>
			</select>
	<div id="xs_all"></div>
<script type="text/javascript">
	fun();
	function fun(){
		var tbClass_id = $("#tbClass_id").val();
		$("#xs_all").load("xs_all?tbClass_id="+tbClass_id);
	}
	
</script>
</body>
</html>